package cn.zz.veggie.tool.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhongq
 * @since 2024/5/17
 */
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "veggie.auth")
public class AuthConfig {

	private JwtConfigProperties mgmt;
	private JwtConfigProperties user;

	@Getter
	@Setter
	public static class JwtConfigProperties {
		private String publicKey;
		private String privateKey;
		private Long expireSeconds = 24 * 60 * 60L;
	}

}